package com.weiyi.biz.domain;

import java.util.Date;
import com.weiyi.common.annotation.Excel;
import com.weiyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 位移设备对象 weiyi_equip
 *
 * @author gq
 * @date 2020-09-30
 */
public class WeiyiEquip extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 设备编号(唯一) */
    @Excel(name = "设备编号(唯一)")
    private String deviceCode;

    /** 安装位置 */
    @Excel(name = "安装位置")
    private String addr;

    /** 关联用户ID */
    @Excel(name = "关联用户ID")
    private Long userId;

    /** 设备状态 */
    @Excel(name = "设备状态")
    private String state;

    /** 操作时间 */
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operateTime;

    /** 正值方向 */
    @Excel(name = "正值方向")
    private String positive;

    /** 负值方向 */
    @Excel(name = "负值方向")
    private String negative;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDeviceCode(String deviceCode)
    {
        this.deviceCode = deviceCode;
    }

    public String getDeviceCode()
    {
        return deviceCode;
    }
    public void setAddr(String addr)
    {
        this.addr = addr;
    }

    public String getAddr()
    {
        return addr;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setState(String state)
    {
        this.state = state;
    }

    public String getState()
    {
        return state;
    }
    public void setOperateTime(Date operateTime)
    {
        this.operateTime = operateTime;
    }

    public Date getOperateTime()
    {
        return operateTime;
    }
    public void setPositive(String positive)
    {
        this.positive = positive;
    }

    public String getPositive()
    {
        return positive;
    }
    public void setNegative(String negative)
    {
        this.negative = negative;
    }

    public String getNegative()
    {
        return negative;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceCode", getDeviceCode())
            .append("addr", getAddr())
            .append("userId", getUserId())
            .append("state", getState())
            .append("operateTime", getOperateTime())
            .append("positive", getPositive())
            .append("negative", getNegative())
            .toString();
    }
}
